﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace GD.ModelContest.Web
{
    public partial class ShowOldUser : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(Request.QueryString["UserId"]))
            {
                GetUserByID(Request.QueryString["UserId"]);
            }
        }

        protected void GetUserByID(string userID)
        {
            switch (userID)
            {
                case "1": this.ltTitle.Text = "首届模特大赛平面模特冠军：艾尼瓦尔江"; this.imgUser.ImageUrl = "/Images/mt_1b.jpg"; break;
                case "2": this.ltTitle.Text = "首届模特大赛平面模特亚军：李可"; this.imgUser.ImageUrl = "/Images/mt_2b.jpg"; break;
                case "3": this.ltTitle.Text = "首届模特大赛平面模特季军：文雯"; this.imgUser.ImageUrl = "/Images/mt_3b.jpg"; break;
                case "4": this.ltTitle.Text = "首届模特大赛人体模特冠军：独伊"; this.imgUser.ImageUrl = "/Images/mt_4b.jpg"; break;
                case "5": this.ltTitle.Text = "首届模特大赛人体模特亚军：赵蕊"; this.imgUser.ImageUrl = "/Images/mt_5b.jpg"; break;
                case "6": this.ltTitle.Text = "首届模特大赛人体模特季军：郭延利"; this.imgUser.ImageUrl = "/Images/mt_6b.jpg"; break;
            }
        }

        protected void btnBack_Click(object sender, EventArgs e)
        {
            Response.Redirect("Index.aspx");
        }
    }
}
